

package com.scs.application.modules.upms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 服务号成员实体对象
*/
@TableName("wxmp_member")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class WxmpMember extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /** 服务号ID */
    @NotNull(message="服务号ID不能为空")
    private String appId;

    /** OpenId */
    @NotNull(message="OpenId不能为空")
    private String openId;

    /** 用户ID */
    @NotNull(message="用户ID不能为空")
    private String userId;

    private String loginKey;
    private String nickname;
    private String sexDesc;
    private String headImgUrl;

    /** 加入时间 */
    @NotNull(message="加入时间不能为空")
    private java.util.Date gmtJoined;

}
